package com.testmanager.testmananger.shuiyou.strCompare.domain;


import com.testmanager.testmananger.foundation.domain.AbstractAuditingEntity;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.persistence.*;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Entity
@Data
@Accessors(chain = true)
@Table(name = "sy_project")
public class SyProjectEntity extends AbstractAuditingEntity implements Serializable   {
    private static final long serialVersionUID = 4164654011994959680L;

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private long id;

    @Column(unique = true)
    @NotNull(message = "目录不能为空")
    private String name;

    @Column(name = "parentid")
    private long parentId = 0;

    @Column
    private int status;









}
